(ccl-compile-if): Signal an error for invalid operator.
authorKenichi Handa <handa@m17n.org>
Mon, 16 Mar 2009 11:12:40 +0000 (11:12 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 16 Mar 2009 11:12:40 +0000 (11:12 +0000)
lisp/international/ccl.el

index 1d212afd51960d6ccd06dbcb217d2f74edab4ae7..c5088c8c9e5fa43a2f765f608ade0c2dda449a63 100644 (file)
@@ -505,6 +505,8 @@ If READ-FLAG is non-nil, this statement has the form
            (op (get (nth 1 condition) 'ccl-arith-code))
            (arg (nth 2 condition)))
        (ccl-check-register rrr cmd)
+       (or (integerp op)
+           (error "CCL: invalid operator: %s" (nth 1 condition)))
        (if (integerp arg)
            (progn
              (ccl-embed-code (if read-flag 'read-jump-cond-expr-const